﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///Basic 的摘要说明
/// </summary>
public class Basic : System.Web.UI.Page
{
    public Basic()
    {
    }

    private string _jsonUrl = "http://192.168.6.35/CMSService/";
    ///<summary>
    ///
    ///</summary>
    public string jsonUrl
    {
        get { return _jsonUrl; }
    }

    private string _wwwUrl = "http://192.168.6.71:8081/";
    ///<summary>
    ///
    ///</summary>
    public string wwwUrl
    {
        get { return _wwwUrl; }
    }

    private string _quoteUrl = "http://192.168.6.71:5252/";
    ///<summary>
    ///
    ///</summary>
    public string quoteUrl
    {
        get { return _quoteUrl; }
    }

    public string NewsUrl
    {
        get
        {
            return "http://localhost:6038/WebSite/";
        }
    }

    private string _quoteImgUrl = "http://chart.emoney.cn/";
    ///<summary>
    ///
    ///</summary>
    public string quoteImgUrl
    {
        get { return _quoteImgUrl; }
    }

    private string _serviceUrl = "http://192.168.6.71:5353/";
    ///<summary>
    ///
    ///</summary>
    public string serviceUrl
    {
        get { return _serviceUrl; }
    }

    private string _payUrl = "http://192.168.6.71:5858/";
    ///<summary>
    ///
    ///</summary>
    public string payUrl
    {
        get { return _payUrl; }
    }

    public string GetNewsUrl(object id)
    {
        return NewsUrl +"n"+ id.ToString() + ".shtml";
    }

    public string GetNewListUrl(string typeId, int page = 1)
    {
        return NewsUrl + "news_" + typeId + "_" + page+".shtml";
    }

    public string GetNewListUrl(int page = 1)
    {
        return NewsUrl + "news_" + page+".shtml";
    }

    private string _infoUrl = "http://192.168.6.71:5555/";
    ///<summary>
    ///
    ///</summary>
    public string infoUrl
    {
        get { return _infoUrl; }
    }
}